//
//  YPhotoView.h
//  TestZoomPhoto
//
//  Created by yull on 14/12/6.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YPhoto.h"
@class YPhotoView;

@protocol YPhotoViewDelegate <NSObject>

@optional

- (CGRect)photoView:(YPhotoView *)photoView showRectAtIndex:(NSInteger)index;

- (CGRect)photoView:(YPhotoView *)photoView hideRectAtIndex:(NSInteger)index;

- (void)photoViewHide;

@end

@interface YPhotoView : UIView

@property (nonatomic, assign) BOOL isWebImage;

@property (nonatomic, assign) id <YPhotoViewDelegate> delegate;

@property (nonatomic, strong) NSArray *photoArray;

@property (nonatomic, assign) NSInteger showIndex;

- (void)showPhotoViewWithImage:(UIImage *)image;

@end
